# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  
  def render_font_settings
    unless @current_user.nil?
      font_family = @current_user.get_setting('font_family')
      font_size = @current_user.get_setting('font_size')
      css = ''
      css += "font-family: #{font_family};" unless font_family.nil? 
      css += "font-size: #{font_size};" unless font_size.nil?
      
      return"<style type=\"text/css\">*{#{css}}</style>"
    end
  end
   
end
